package com.example.wheelguide;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;

public class MainMenuActivity extends Activity{
	ImageButton button_img;
	
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
		
	button_img= new ImageButton(this);
	setContentView(R.layout.main_menu);
		
	button_img= (ImageButton) findViewById(R.id.Button_Profiles);
	
	button_img.setOnClickListener(new OnClickListener() {
		
		@Override
		public void onClick(View v) {
			Intent mainMenuIntent = new Intent(v.getContext(), ProfilesMenuActivity.class);
			startActivity(mainMenuIntent);
			
			
		}
	});
	
	button_img= (ImageButton) findViewById(R.id.Button_Navigation);
	
	button_img.setOnClickListener(new OnClickListener() {
		
		@Override
		public void onClick(View v) {
			Intent mainMenuIntent = new Intent(v.getContext(), NavigationMenuActivity.class);
			startActivity(mainMenuIntent);
			
			
		}
	});
	
	button_img= (ImageButton) findViewById(R.id.Button_Map);
		
	button_img.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent mainMenuIntent = new Intent(v.getContext(), MapActivity.class);
				startActivity(mainMenuIntent);
				
				
			}
		});	

	}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
}
	
}
	

